<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RentClothDetail extends Model
{
    protected $table = 'rent_cloth_detail';


    public function rentcloth()
    {
        return $this->belongsTo(RentCloth::class,'rent_id','id');
    }

    public function commodity()
    {
        return $this->hasOne(Commodity::class,'id','commodity_id');
    }
    public function commodityAttr()
    {
        return $this->hasOne(CommodityAttr::class,'id','commodity_attr_id');
    }

}
